<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path=request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"></base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户管理</title>
<link rel="stylesheet" href="js/plugins/jquery-ui/themes/redmond/jquery-ui.min.css" />
<link rel="stylesheet" href="js/plugins/jqGrid/css/ui.jqgrid.css" />
<link rel="stylesheet" href="css/layout.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/plugins/jqGrid/js/i18n/grid.locale-cn.js"></script>
<script type="text/javascript" src="js/plugins/jqGrid/js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="js/plugins/jquery-ui/ui/jquery-ui.js"></script>
<script type="text/javascript" src="js/plugins/jquery-ui/ui/i18n/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="js/plugins/noty/jquery.noty.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/topRight.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/top.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/center.js"></script>
<script type="text/javascript" src="js/plugins/noty/themes/default.js"></script>

<script type="text/javascript" src="js/AC_RunActiveContent.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/system/user.js"></script>
<script>
    $(function() {
        setupMenu();

        setupContent();

        setupUserGrid();

        setupUserToolbar();

        setupUserDialog();

		$.datepicker.setDefaults($.datepicker.regional[ "zh-CN" ]);
        $("#birthday").datepicker({dateFormat: "yy-mm-dd", changeMonth: true, changeYear: true, yearRange: "-99:+0"});
    });
</script>
</head>
<body>
 <div id="container">
  <%@ include file="../header.jsp" %>
  <div id="mainContent">
   <div id="tabs">
    <ul>
     <li><a href="#tab">用户管理</a></li>
    </ul>
    <div id="tab">
     <div id="toolbar">
      <button id="add">用户信息录入</button>
      <button id="edit">用户信息编辑</button>
      <button id="delete">用户信息删除</button>
     </div>
     <table id="users"></table>
     <div id="pager"></div>
    </div>
   </div>
   <div id="detail" title="用户信息录入">
    <form id="userForm" method="post">
     <input type="hidden" name="user.id" id="id" />
     <input type="hidden" name="user.password" id="password" />
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
       <td>用户ID</td>
       <td><input type="text" name="user.userId" id="userId" maxlength="6" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
      <tr>
       <td>用户名</td>
       <td><input type="text" name="user.userName" id="userName" maxlength="16" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
      <tr>
       <td>性别</td>
       <td>
         <select name="user.sex" id="sex" class="text ui-widget-content ui-corner-all">
           <option value="1">男</option>
           <option value="0">女</option>
         </select>
       </td>
      </tr>
      <tr>
       <td>所属部门</td>
       <td>
         <select name="user.departId" id="departId" class="text ui-widget-content ui-corner-all">
         </select>
       </td>
      </tr>
      <tr>
       <td>出生日期</td>
       <td>
         <input type="text" name="user.birthday" id="birthday" class="text ui-widget-content ui-corner-all" /></td>
      </tr>
     </table>
    </form>
   </div>
  </div>
 </div>
</body>
</html>